package cn.edu.scau.cmi.linzhanyi.factory;

public class GetFactory {
	public static Factory getFactory(String type) {
		switch (type) {
			case "驾驶员身体受伤":return new BodyInsuranceFactory();
			case "汽车损坏" :return new CarInsuranceFactory();
			case "人员伤亡" :return new PeopleInsuranceFactory();
			case "多种事故" :return new MultipleAccidentsFactory();
			default : return null;
		}
		
	}
}
